import request from '@/utils/request'
export function fetchData(data) {
    return request({
        url: '/repo/page',
        method: 'post',
        data
    })
}

export function save(data) {
    return request({
        url: '/repo/save',
        method: 'post',
        data
    })
}

export function deleteById(id) {
    return request({
        url: `/repo/delete/${id}`,
        method: 'get',
    })
}

export function deleteBatch(data) {
    return request({
        url: `/repo/deleteBatch`,
        method: 'post',
        data
    })
}

export function findAll() {
  return request({
    url: '/repo/list',
    method: 'get',
  })
}